<include file="common/hearder"/>

<div class="page-header">
    <div class="pull-left" style="margin-left: 40%;color: #2b542c">
        <h3>面试信息管理</h3>
    </div>
</div>
<br><br>
<div class="pull-right">
    <form class="form-inline" action="{:U('index')}">
        <div class="form-group" >
            <div class="input-group">
                <div class="input-group-addon">搜</div>
                <input type="text" name="value" class="form-control" id="exampleInputAmount" placeholder="{$value ? $value : '请输入关键信息'}">
                <div class="input-group-addon">索</div>
            </div>
        </div>
        <button type="submit" value="1" name="search" class="btn btn-primary">查询</button>
    </form>
</div>
<div class="manage-left">
    <a class="btn btn-default" href="{:U('submit')}">通知面试</a>
    <a class="btn btn-default" onclick="$('#hide').submit();">批量隐藏</a>
    <a href="{:U('new_index')}" class="btn btn-default" onclick="$('#hide').submit();">回收站</a>
</div>
<div class="clearfix"></div>
<div class="table-margin">
    <form id="hide" class="am-form" action="{:U('hide_all')}">
    <table class="table table-bordered table-header">
        <thead>
        <tr>
            <td><input type="checkbox" class="check_all"></td>
            <td >面试编号</td>
            <td>面试人</td>
            <td>面试时间</td>
            <td>面试地点</td>
            <td>面试岗位</td>
            <td>面试官</td>
            <td>面试情况</td>
            <td>状态</td>
            <td>简历ID</td>
            <td>处理人</td>
            <td>处理意见</td>
            <td>处理时间</td>
            <td>操作</td>

        </tr>
        <foreach name="list" item="li">
            <tr class="active">
                <td><input type="checkbox" class="check_a" name="itw_id[]" value="{$li.itw_id}"></td>
                <td class="danger">{$li.itw_id}</td>
                <td class="danger">{$li.preson}</td>
                <td class="danger">{$li.itw_time}</td>
                <td class="danger">{$li.itw_adress}</td>
                <td class="danger">{$li.itw_post}</td>
                <foreach name="lis" item="ls">
                    <?php if($li['stf_id']==$ls['pt_id']){?>
                    <td class="danger"><?php  echo $ls['pt_name'];?></td>
                    <?php }?>
                </foreach>
                <td class="danger">{$li['status']==1?'<span style="color: #00a300">已同意</span>':'<span style="color: salmon">审核中</span>'}</td>
                <td class="danger">{$li['state']==1?'<span style="color: #00a300">启用</span>':'<span style="color: red">禁用</span>'}</td>
                <td class="danger"><a href="">{$li['rmn_id']}</a></td>
                <td class="danger">{$li.itw_man}</td>
                <td class="danger">{$li.itw_opinion}</td>
                <td class="danger">{$li.cltime}</td>
                <td>
                    <a href="{:U('new_select',array('itw_id'=>$li['itw_id'],'rmn_id'=>$li['rmn_id']))}" class="glyphicon glyphicon-pencil" style="text-decoration: none;">查看</a>
                    <a href="{:U('del',array('itw_id'=>$li['itw_id']))}" class="glyphicon glyphicon-trash" style="text-decoration: none;">隐藏</a>
                    <a href="{:U('shenhe',array('itw_id'=>$li['itw_id']))}" class="glyphicon glyphicon-time" style="text-decoration: none;">审核</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="am-cf">
        <div class="font" style="margin-left: 20px">
            共 {$count} 条记录
        </div>
        <div class="show_page" style="float: right">{$show}</div>
    </div>
</div>
</div>
<script>
    <!--  全选和反选prop(); prop()方法设置或返回被选元素的属性和值-->
    $('.check_all').on('click',function () {
        if($(this).prop('checked')){
            $('.check_a').each(function () {
                if($(this).prop('checked')){
                    $(this).prop('checked',false);
                }else{
                    $(this).prop('checked',true);
                }
            });
        }else{
            $('.check_a').prop('checked',false);
        }
    });
</script>
<include file="common/footer"/>